package gameevent

import (
	"xr-game-server/core/event"
	"xr-game-server/module/protocol"
)

const (
	MailEvent event.Type = "MailEvent"
)

type MailEventData struct {
	//角色id
	RoleId uint64
	//附件
	Items []*protocol.ItemModel
	//邮件id
	MailId uint32
}

func NewMailEvent(roleId uint64, items []*protocol.ItemModel, mailId uint32) *MailEventData {
	return &MailEventData{
		RoleId: roleId,
		Items:  items,
		MailId: mailId,
	}
}
